
import http from "../../../utils/requestAI";
import type { edit } from "./blood_type";
import {type ExampleGenerate,type Data } from "./blood_type";



//列表
export const getBlood=(params?:Data)=>{

  return  http.get<ExampleGenerate>('/bloodPressure/list',params);

}

//删除
export const delBlood=(id:number)=>{

    console.log('删除1111',id);

    return  http.delete(`/bloodPressure/delete/${id}`);
  
}

export const delBloodAll = (ids: number[]) => {
  console.log('批量删除执行', ids);
  return http.post(`/bloodPressure/deleteAll`,ids);
}
export const editBlood = (data: edit) => {
  return http.put(`/bloodPressure/update`, data);
}
